-- GENERATED SPELL FOR [Vengeance Landing Assassin] --


function spell0_24474(pUnit, Event) --@Frost Shot,n/a--
pUnit:FullCastSpellOnTarget(18802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24474', 10302, 1)
end

function spell1_24474(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24474', 613, 1)
end

function Sorts_24474(pUnit, Event)
local choix_sorts_24474 = math.random(0, 1)
if choix_sorts_24474 == 0 then
pUnit:RegisterEvent('spell0_24474', 1, 1)
end
if choix_sorts_24474 == 1 then
pUnit:RegisterEvent('spell1_24474', 1, 1)
end
end

function mob24474_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24474', math.random(1500, 3000), 1)
end

function mob24474_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24474_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24474_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24474, 1, 'mob24474_Action')
RegisterUnitEvent(24474, 2, 'mob24474_Leave')
RegisterUnitEvent(24474, 3, 'mob24474_Kill')
RegisterUnitEvent(24474, 4, 'mob24474_Die')
